//
//  ByteConvert.h
//  DB3
//
//  Created by keisun on 2018/12/4.
//  Copyright © 2018年 keisun. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ByteConvert : NSObject

//字节数组转成float
+(float)byteToFloat_WithByte:(unsigned char[])byte;
//float转字节数组
+(void)floatToByte:(unsigned char[])byte withFloat:(float)f;

//字节数组转成int
+(int)byteToInt_WithByte:(unsigned char[])byte;
//int转字节数组
+(void)intToByte:(unsigned char[])byte withInt:(int)i;

+(int)dataToInt:(NSData *)data;
+(float)dataToFloat:(NSData *)data;
+(NSString *)dataToString:(NSData *)data;

@end
